﻿/*
 * FeatureMetadata
 * 
 * initial implementation : 20.9.2008
 *
 * Copyright (c) Adam Sida, asida@centrum.cz.
 * All rights reserved.
 * 
 * for license see Petra.Gis.License.txt
 */
using System;
//using System.Collections.Generic;
using Petra.Gis.Geometry.Support;
//using Petra.Gis.ReferenceSystemServices;
//using System.Xml.Serialization;
using System.Runtime.Serialization;


namespace Petra.Gis.Support
{


  /// <summary>
  /// Project metadata
  /// </summary>
  [DataContract(Name="INFO")]
  public class ProjectMetadata
  {


    public ProjectMetadata()
    {
    }






    protected string _name;

    [DataMember (Name="NAME")]
    public string Name
    {
      get { return _name; }
      set
      {
        if (value == null || value == "")
          throw new ArgumentException("null Name not allowed");

        _name = value;
      }
    }





    //protected string _title;
    [DataMember(Name = "TITLE")]
    public string Title
    { get; set; }





    //protected string _abstract;
    [DataMember(Name = "ABSTRACT")]
    public string Abstract
    { get; set; }





    //protected BoundingBox _bounds;

    /// <summary>
    /// Spatial extent/bounding box for feature
    /// </summary>
    [DataMember(Name = "EXTENT")]
    public BoundingBox Bounds
    { get; set; }







    //protected string[] _keyWords;
    [DataMember(Name = "KEYWORDS")]
    public string[] KeyWords
    { get; set; }






    //protected ContactInfo _contactInfo;
    [DataMember(Name = "CONTACT")]
    public ContactInfo ContactInfo
    { get; set; }



  }
}
